<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>通讯录</title>
    <style>
        table {
            border-collapse: collapse; margin: auto;
        }
        th,
        td {
            border: chocolate solid 1px; padding: 5px;
        }
    </style>
</head>
<body>
<table>
    <tr>
        <th>学号</th>
        <th>姓名</th>
        <th>生日</th>
    </tr>
    
    <tr th:each="person:${persons}">
        <td th:text="${person.personId}"></td>
        <td th:text="${person.personName}"></td>
        </td>
        <td th:text="${#dates.format(person.birthday, 'yyyy年MM月dd日')}">
    </tr>
</table>
</body>
</html>